package com.md.api.dao;

import com.md.api.entity.PhotoInfo;
import com.md.api.entity.RecycleBin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface PhotoInfoMapper {
    int deleteByPrimaryKey(Integer id);

    int save(PhotoInfo record);

    int updatePhoto(PhotoInfo photo);
    int lockUserPhoto(@Param("userId") String userId);
    int unlockUserPhoto(@Param("userId") String userId);

    List<PhotoInfo> getByUserId(@Param("userId") String userId,@Param("keyword") String keyword);
    List<PhotoInfo> selectAll(@Param("nickName") String nickName);
    List<PhotoInfo> getNoFacePhoto();

    PhotoInfo getByPhotoId(@Param("photoId") String photoId);

}